package spzx.service;

import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.atguigu.spzx.model.vo.system.ValidateCodeVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysUserService {

    List<SysUser> findAll();

    LoginVo login(LoginDto loginDto);

    SysUser userInfo(String token);

    void logout(String token);

    ValidateCodeVo getValidateCode();

    PageInfo findByPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void addSysUser(SysUser sysUser);

    void deleteById(Long sysUserId);

    String deleteByIds(List<Long> ids);

    void updateSysUser(SysUser sysUser);
}
